package org.cc.cloud.domain.user;


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 用户类
 * @author tangjin
 *
 * 2016年5月27日
 */
@Entity
@Table(name="czb_user_admin")
public class User implements  Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "id",nullable=false,unique=true)
	private String id;
//	
	@Column(name = "nickname",nullable = false, unique = true)
	private String nickName;//用户名
	
	@Column(name = "realName",nullable = false)
	private String realName;//真实姓名
	@Column(name = "last_login")
	private Date last_login;//最后登录时间
	
	public Date getLast_login() {
		return last_login;
	}

	public void setLast_login(Date last_login) {
		this.last_login = last_login;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}



	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	


}
